package com.example.reference_book.controller;

import com.example.reference_book.entity.Course;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("CourseStrategy")
public interface CourseStrategy {
    @GetMapping("/{type}/{key}")
    public List<Course> searchByType(@PathVariable("type") String type,@PathVariable("key") String key);
}
